package mongohelper.sample;

import mongohelper.annotations.MongoField;
import mongohelper.annotations.MongoObject;

@MongoObject
public class Person {

	@MongoField(fieldName = "_id")
	private String id;

	@MongoField(fieldName = "_name")
	private String name;

	@MongoField(fieldName = "_age")
	private int age;

	@MongoField(fieldName = "_address")
	private Address address;

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public int getAge() {
		return age;
	}

	public void setAge(int age) {
		this.age = age;
	}

	public Address getAddress() {
		return address;
	}

	public void setAddress(Address address) {
		this.address = address;
	}

}
